package Time_Clock;

import java.text.ParseException;

public class TestForTime {
    public static void main(String[] args)throws ParseException {
        System.out.println("Test: no-arg constructor that creates a Time object for the current time.");
            Time time1 = new Time();
        System.out.println("Test: get methods:\n    "+time1.getHour()+":"+time1.getMinute()+":"+time1.getSecond());
        System.out.println("Test: toString method:\n   "+time1.toString());
        System.out.println("Test: set methods:");
            time1.setHour(6);time1.setMinute(30);time1.setSecond(23);
        System.out.println("    " + time1.toString());
        System.out.println("Test: setTime method:");
            time1.setTime(6000000);
        System.out.println("    " + time1.toString());
        System.out.println("Test: constructor that constructs a Time object with a specified elapsed time.");
            Time time2 = new Time(6000000);
        System.out.println("    " + time2.toString());
        System.out.println("Test: constructor that constructs a Time object with the specified hour, minute, and second.");
            Time time3 = new Time(3,30,45);
        System.out.println("    " + time3.toString());

    }
}
